<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: inputParser.FourLineInputParser Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classinput_parser_1_1_four_line_input_parser.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pac-attribs">Package Attributes</a>  </div>
  <div class="headertitle">
<div class="title">inputParser.FourLineInputParser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Parse a four line grammar format.  
 <a href="classinput_parser_1_1_four_line_input_parser.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for inputParser.FourLineInputParser:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classinput_parser_1_1_four_line_input_parser__inherit__graph.png" border="0" usemap="#input_parser_8_four_line_input_parser_inherit__map" alt="Inheritance graph"/></div>
<map name="input_parser_8_four_line_input_parser_inherit__map" id="input_parser_8_four_line_input_parser_inherit__map">
<area shape="rect" id="node2" href="classinput_parser_1_1_abstract_input_parser.html" title="{inputParser.AbstractInputParser\n||+ parse()\l}" alt="" coords="6,5,212,83"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for inputParser.FourLineInputParser:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classinput_parser_1_1_four_line_input_parser__coll__graph.png" border="0" usemap="#input_parser_8_four_line_input_parser_coll__map" alt="Collaboration graph"/></div>
<map name="input_parser_8_four_line_input_parser_coll__map" id="input_parser_8_four_line_input_parser_coll__map">
<area shape="rect" id="node2" href="classinput_parser_1_1_abstract_input_parser.html" title="{inputParser.AbstractInputParser\n||+ parse()\l}" alt="" coords="5,445,211,523"/><area shape="rect" id="node8" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|~ right\l&#45; left\l&#45; leftSimbols\l&#45; rightSimbols\l|+ Production()\l+ Production()\l+ Production()\l+ Production()\l+ getLeftSimbols()\l+ setLeftSimbols()\l+ getRightSimbols()\l+ setRightSimbols()\l+ getLeft()\l+ getRight()\l+ toString()\l}" alt="" coords="298,350,509,618"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classinput_parser_1_1_four_line_input_parser-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ab60c07b777f5edc493d0d71abcfdc840"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab60c07b777f5edc493d0d71abcfdc840"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>FourLineInputParser</b> (String input)</td></tr>
<tr class="memitem:a99c37488d66cfeecb33e13d573b4a81a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classinput_parser_1_1_four_line_input_parser.html#a99c37488d66cfeecb33e13d573b4a81a">parse</a> ()  throws Exception</td></tr>
<tr class="memdesc:a99c37488d66cfeecb33e13d573b4a81a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the file .4l and creates the object grammar.  <a href="#a99c37488d66cfeecb33e13d573b4a81a"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pac-attribs"></a>
Package Attributes</h2></td></tr>
<tr class="memitem:ab974828c70b8a1335c806d6d3cf83da7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab974828c70b8a1335c806d6d3cf83da7"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>file</b></td></tr>
<tr class="memitem:a9ed7517e786d914194ee6e2e7a2dedf9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9ed7517e786d914194ee6e2e7a2dedf9"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>A_reader</b></td></tr>
<tr class="memitem:ab32a6cf6e1398b4d6df4cde2036dfc82"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab32a6cf6e1398b4d6df4cde2036dfc82"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>V_reader</b></td></tr>
<tr class="memitem:ac942629b7fbdf58ea902eaccfba356b4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac942629b7fbdf58ea902eaccfba356b4"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>T_reader</b></td></tr>
<tr class="memitem:a72862efdd54896c843b7ad5677f33515"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a72862efdd54896c843b7ad5677f33515"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>P_reader</b></td></tr>
<tr class="memitem:a70d648d67b885eeef32f47162ffa81ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a70d648d67b885eeef32f47162ffa81ae"></a>
String[]&#160;</td><td class="memItemRight" valign="bottom"><b>V_temp</b></td></tr>
<tr class="memitem:a17b5ddecc36fdca0cc0be1d613a20caa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a17b5ddecc36fdca0cc0be1d613a20caa"></a>
String[]&#160;</td><td class="memItemRight" valign="bottom"><b>T_temp</b></td></tr>
<tr class="memitem:adb2b6b325e8bc451ba7b46270ba4dea8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb2b6b325e8bc451ba7b46270ba4dea8"></a>
String[]&#160;</td><td class="memItemRight" valign="bottom"><b>P_temp</b></td></tr>
<tr class="memitem:a7a3bb0e55f839ba984d0953724ea385a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a3bb0e55f839ba984d0953724ea385a"></a>
String[]&#160;</td><td class="memItemRight" valign="bottom"><b>singPro</b></td></tr>
<tr class="memitem:ae0f524894f39d7a13bddd5e2efad8d3e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae0f524894f39d7a13bddd5e2efad8d3e"></a>
<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a>&#160;</td><td class="memItemRight" valign="bottom"><b>pro</b></td></tr>
<tr class="memitem:a39fe356d1b2152557ca7c5d47b0d2f43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39fe356d1b2152557ca7c5d47b0d2f43"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>i</b></td></tr>
<tr class="memitem:a6aaf88a0bec2622e542a59b4efdd19b6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6aaf88a0bec2622e542a59b4efdd19b6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>j</b></td></tr>
<tr class="memitem:a1dd8814f232e9c83f48ead8cf5d9f2b2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1dd8814f232e9c83f48ead8cf5d9f2b2"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>V</b> = null</td></tr>
<tr class="memitem:ac5810e00377c73d3218c6c517676c5d4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5810e00377c73d3218c6c517676c5d4"></a>
List&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>T</b> = null</td></tr>
<tr class="memitem:a25cb1cc11bda9a906f0a29eb66444c76"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a25cb1cc11bda9a906f0a29eb66444c76"></a>
List&lt; <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>P</b> = null</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Parse a four line grammar format. </p>
<p>ex (file.4l): E E, T, P a, +, x, (, ), $ E::=E+T, E::=T, T::=TxP, T::=P, P::=a, P::=(E) </p>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Definition at line <a class="el" href="_four_line_input_parser_8java_source.html#l00026">26</a> of file <a class="el" href="_four_line_input_parser_8java_source.html">FourLineInputParser.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a99c37488d66cfeecb33e13d573b4a81a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="interfacecontext_free_1_1grammar_1_1_i_grammar.html">IGrammar</a> <a class="el" href="classinput_parser_1_1_four_line_input_parser.html#a99c37488d66cfeecb33e13d573b4a81a">inputParser.FourLineInputParser.parse</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td>  throws Exception<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read the file .4l and creates the object grammar. </p>
<dl class="section return"><dt>Returns:</dt><dd>the grammar </dd></dl>
<dl class="section author"><dt>Author:</dt><dd>Pierluigi Sottile </dd></dl>

<p>Implements <a class="el" href="classinput_parser_1_1_abstract_input_parser.html#a548b0f6fa44b7954b79bdd964336bafe">inputParser.AbstractInputParser</a>.</p>

<p>Definition at line <a class="el" href="_four_line_input_parser_8java_source.html#l00054">54</a> of file <a class="el" href="_four_line_input_parser_8java_source.html">FourLineInputParser.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classinput_parser_1_1_four_line_input_parser_a99c37488d66cfeecb33e13d573b4a81a_cgraph.png" border="0" usemap="#classinput_parser_1_1_four_line_input_parser_a99c37488d66cfeecb33e13d573b4a81a_cgraph" alt=""/></div>
<map name="classinput_parser_1_1_four_line_input_parser_a99c37488d66cfeecb33e13d573b4a81a_cgraph" id="classinput_parser_1_1_four_line_input_parser_a99c37488d66cfeecb33e13d573b4a81a_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a25d4e5bf4a9a452efca5dd6518e16c25" title="Check the type of grammar (ex." alt="" coords="299,5,642,32"/><area shape="rect" id="node5" href="classcontext_free_1_1grammar_1_1_grammar_factory.html#a513482168bb15e55211bc4f04e276711" title="Controls that make up the grammar productions that are valid." alt="" coords="691,5,1005,32"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/inputParser/<a class="el" href="_four_line_input_parser_8java_source.html">FourLineInputParser.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceinput_parser.html">inputParser</a>      </li>
      <li class="navelem"><a class="el" href="classinput_parser_1_1_four_line_input_parser.html">FourLineInputParser</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:28 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
